<?php 
     $tbl_right          = new Default_Model_right();
     $section            = $tbl_right->get_section_product();

?>

 <!--Begin div right-->
               <div class="right">
                <?php  foreach ($section as $set){  ?> 
                  <div class="menu_containt">
                        <h3 class="list_title_menu"><?php echo $set['title']; ?></h3>
                        <?php 
                           $category_product = $tbl_right->get_category_product($set['id']);
                          
                        ?>
							<ul class="navigation">
							  <?php  foreach ($category_product as $cat){ ?>
								<li>
									<a class="head" href="#"><?php echo $cat['title']; ?></a>
									<ul class="head_sub">
									   <?php
                                           $detail_product=$tbl_right->get_details_product($cat['id']);
                                           foreach ($detail_product as $detail){
									   ?>
										<li>
											 <a href="<?php echo JURI.'index/details/cat/'.$this->FunctionPublic($cat['title']).'/title/'.$this->FunctionPublic($detail['title']).'/id/'.$detail['id']; ?>">
											    <?php echo $detail['title']; ?>
											 </a>
										 </li>
										<?php }?>
									</ul> 
								</li>
								<?php }?>
							</ul>
							
							
						</div>
				<?php }?>		
		
                   
                  <?php include 'socialnetwork.php'; ?>